]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: Reset show-apps label on drag-end
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 8 Oct 2012 18:33:21 +0000 (20:33 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 15 Oct 2012 21:22:34 +0000 (23:22 +0200)
Currently the label for the show-apps button is only updated during
drag operations, so after an item is successfully dropped on the
button, the label will still read "Remove from Favorites".
Fix this by resetting the label on drag-end.

https://bugzilla.gnome.org/show_bug.cgi?id=684627

js/ui/dash.js

index dc08b68ab53a30a0a9ff11647d497a81ad3c9d1c..b564aea8c202421557d3b771803280644ded1436 100644 (file)
@@ -446,6 +446,7 @@ const Dash = new Lang.Class({
 
     _endDrag: function() {
         this._clearDragPlaceholder();
+        this._showAppsIcon.setDragApp(null);
         DND.removeDragMonitor(this._dragMonitor);
     },